import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//引入全局样式
import '@/assets/global.less'

//引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

//引入axios
import axios from 'axios'

//设置axios的默认地址
axios.defaults.baseURL = 'http://www.liulongbin.top:3008'

//把axios挂载到Vue.prototype上
Vue.prototype.$http = axios

//全局注册所有组件
Vue.use(ElementUI);

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
